package com.atguigu.day08.p3;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/8 14:24
 * @注释
 */
public class StudentTest {
    public static void main(String[] args) {
        Student s1 = new Student();
        s1.setName("张三");
        s1.setAge(18);
        s1.setGender('男');
        System.out.println("姓名: " + s1.getName() + " 性别: " + s1.getGender() + " 年龄: " + s1.getAge());
        Student s2 = new Student();
        s2.setName("李四");
        s2.setAge(18);
        s2.setGender('女');
        System.out.println("姓名: " + s2.getName() + " 性别: " + s2.getGender() + " 年龄: " + s2.getAge());
    }
}
